package com.ruoyi.core.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * core_detail对象 activation_code_detail
 *
 * @author ruoyi
 * @date 2020-09-28
 */
public class ActivationCodeDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 激活码批次id
     */
    @Excel(name = "激活码批次id")
    private Long batchId;

    /**
     * 激活码
     */
    @Excel(name = "激活码")
    private String code;

    @Excel(name = "使用状态")
    private ActivationCodeStatus status;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setBatchId(Long batchId) {
        this.batchId = batchId;
    }

    public Long getBatchId() {
        return batchId;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public ActivationCodeStatus getStatus() {
        return status;
    }

    public void setStatus(ActivationCodeStatus status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("batchId", getBatchId()).append("code", getCode())
                                                                        .append("status", getStatus()).append("createTime", getCreateTime()).toString();
    }
}
